package server.demo.dto;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

public class CreateCarriageRequest {
    @NotNull(message = "车次ID不能为空")
    private Long trainId;
    
    @NotNull(message = "车厢号不能为空")
    @Min(value = 1, message = "车厢号必须大于0")
    private Integer carriageNumber;
    
    @NotBlank(message = "车厢类型不能为空")
    private String carriageType;
    
    @NotNull(message = "座位总数不能为空")
    @Min(value = 1, message = "座位总数必须大于0")
    private Integer totalSeats;
    
    public Long getTrainId() {
        return trainId;
    }
    
    public void setTrainId(Long trainId) {
        this.trainId = trainId;
    }
    
    public Integer getCarriageNumber() {
        return carriageNumber;
    }
    
    public void setCarriageNumber(Integer carriageNumber) {
        this.carriageNumber = carriageNumber;
    }
    
    public String getCarriageType() {
        return carriageType;
    }
    
    public void setCarriageType(String carriageType) {
        this.carriageType = carriageType;
    }
    
    public Integer getTotalSeats() {
        return totalSeats;
    }
    
    public void setTotalSeats(Integer totalSeats) {
        this.totalSeats = totalSeats;
    }
}